package gof23.behavior.strategy;
/**
 * 策略的执行环境
 */
public class StrategyEnvironment {

	private Strategy strategy;
	
	
	public StrategyEnvironment(Strategy strategy) {
		this.strategy = strategy;
	}
	
	public void execute(String str) {
		strategy.doSomeThing(str);
	}

	public Strategy getStrategy() {
		return strategy;
	}

	public void setStrategy(Strategy strategy) {
		this.strategy = strategy;
	}
	
	
}
